// eslint-disable-next-line no-unused-vars
import req from './http.js';
import { jsonp } from 'vue-jsonp';
const jsonpParam = {
  datatype: 'jsonp',
};
/***
 * 一期接口
 */
// 订阅股票列表
export const SUB_REM = params => req('get', _Global.api.subscribeRemind, '', { ...params });
// 获取订阅状态 列表
export const GET_SUB = params => req('get', _Global.api.getSubscribe, '', { ...params });
// 设置订阅状态
export const SET_SUB = params => req('get', _Global.api.setSubscribe, '', { ...params });
//已发消息查询
export const SEND_MSG_QUERY = params => req('get', _Global.api.isSendMsg, '', { ...params });
//获取选股日期
export const GET_PICK_DATES = params => req('get', _Global.api.pickDates, '', { ...params });
//股池选股结果
export const SELECT_STOCKS = params => req('get', _Global.api.pickStocks, '', { ...params });
//股池收益曲线数据
export const GET_STOCKS_PROFIT = params => req('get', _Global.api.stockProfit, '', { ...params });
//股池池各个股票跟踪提醒
export const GET_STOCKS_TRACE = params => req('get', _Global.api.stockTrace, '', { ...params });

/**
 * 二期接口
 */
// 首页多头趋势、强龙低吸、热点轮动、深一度、小盘成长、价值成长订阅状态查询接口
export const GET_QUERY_INDEX_SUBSCRIBE = params =>
  req('get', _Global.api.indexSubStatus, '', { ...params });
// 强龙低吸和多头趋势 订阅查询接口
export const GET_QUERY_SUBSCRIBE = params =>
  req('get', _Global.api.querySubscribe, '', { ...params });
// 强龙低吸和多头趋势订阅接口 post
export const POST_INSERT_SUBSCRIBE = params =>
  req('post', _Global.api.insertSubscribe, '', { ...params });
// 多头趋势和强龙低吸 股池选股
export const GET_STOCKS_POOL_RE = params =>
  req('get', _Global.api.selectStocksPoolRe, '', { ...params });
// 多头趋势和强龙低吸备选池
export const GET_ALTERNATIVE_POOL = params =>
  req('get', _Global.api.alternativePool, '', { ...params });
// 多头趋势和强龙低吸收益曲线
export const GET_PROFIT_LINE = params => req('get', _Global.api.profitLine, '', { ...params });
// 强龙低吸、多头趋势选股日期
export const GET_SELECT_DATES = params =>
  req('get', _Global.api.selectStockDate, '', { ...params });
// 强龙低吸、多头趋势股池信息
export const GET_STATIC_DATA = params =>
  req('get', _Global.api.stocksStaticData, '', { ...params });
// 强龙低吸、多头趋势 持仓记录
export const GET_POSITION_RECORD = params =>
  req('get', _Global.api.positionRecord, '', { ...params });

//热点轮动、深一度、小盘股池选股
export const GET_STOCKS_POOL = params =>
  req('get', _Global.api.selectStocksPool, '', { ...params });
//价值成长、深一度、热点轮动获取选股日期
export const GET_SELECT_DATES_RE = params =>
  req('get', _Global.api.selectStockDateRe, '', { ...params });
// 热点轮动收益曲线
export const GET_HOT_PROFIT_LINE = params =>
  req('get', _Global.api.profitLineHot, '', { ...params });
// 热点轮动、小盘成长、深一度IV成功案例
export const GET_SUCCESS_CASE = params => req('get', _Global.api.successCase, '', { ...params });
//热点轮动、深一度、小盘订阅查询
export const GET_MODEL_THREE_QUERY = params =>
  req('get', _Global.api.modelThreeSubQuery, '', { ...params });
//热点轮动、深一度、小盘订阅设置
export const GET_MODEL_THREE_SET = params =>
  req('get', _Global.api.modelThreeSubSet, '', { ...params });

// 价值成长股票池
export const GET_VALUE_STOCKS = params => req('get', _Global.api.valueDevStocks, '', { ...params });
//价值成长选股日期
export const GET_VALUE_DATES = params => req('get', _Global.api.valueDevDates, '', { ...params });
//价值成长 订阅查询
export const GET_MODEL_VALUE_QUERY = params =>
  req('get', _Global.api.modelValueSubQuery, '', { ...params });
//价值成长 订阅设置
export const GET_MODEL_VALUE_SET = params =>
  req('get', _Global.api.modelValueSubSet, '', { ...params });

//操作建议 小盘成长 深一度IV
export const GET_OPERATE_SUGGEST = params =>
  req('get', _Global.api.operationSuggest, '', { ...params });
//热点轮动
export const GET_NEW_ANALYSIS = params => req('get', _Global.api.newAnalysis, '', { ...params });

// 判断财富先锋是否有权限
export const cfxfJudgeAuth = params =>
  jsonp(_Global.api.getuserlimit, { ...jsonpParam, ...params });

// 获取股票池空态文案
export const GET_EMPTY_TEXT = params =>
  req('get', _Global.api.frontEmptyConfig, '', { ...params });
